package com.seari.mapper;

import java.util.List;
import java.util.Map;

import com.seari.bean.FaultInfo;
import com.seari.bean.FaultNum;
import com.seari.bean.FaultProcessInfo;
import com.seari.bean.FlowMajor;
import com.seari.bean.FlowText;
import com.seari.bean.User;
import com.seari.bean.FaultTime;
import org.apache.ibatis.annotations.Param;

public interface FaultMapper {
	
	public FaultNum getFaultNum();
	
	public FaultInfo getRtFaultInfoById(String faultId);
	
	public FaultInfo getHisFaultInfoById(String faultId);
	
	public List<FaultInfo> getResolveRtFaultListInfo();
	
	public List<FaultInfo> getResolveHisFaultListInfo(Map<String, Object> mapIn);
	
	public List<FaultInfo> getUnResolveRtFaultListInfo();
	
	public List<FaultInfo> getUnResolveHisFaultListInfo(Map<String, Object> mapIn);
	
    public List<FaultInfo> getQueryhistoryFaultListInfo(Map<String, Object> mapIn);
	
	public List<FaultInfo> getTodayFaultInfoFromOracle();
	
	public List<FaultInfo> getTodayFaultInfoFromMysql();
	
	public void addOrUpdateFaultInfoToMysql(List<FaultInfo> faultInfoList);
	
	public Integer getRtFaultInfoPeopleNumById(String faultId);
	
	public FaultInfo getRtFaultInfoByIdFromFlow(String faultId);

	public List<FaultProcessInfo> getFaultPictureListInfo(String faultId);
	
	public List<Integer> getFlowAllMajor(String faultId);
	
	public List<User> getHanderFaultUserInfo(String faultId);
	
	public List<FlowMajor> getFlowMajorStatu(Map<String,String> maps);
	
	public List<FlowMajor> getFlowMajorAll(String faultId);
	
	/**
	 * 响应时间差值
	 * @param faultId
	 * @return
	 */
	public Integer getAnswerTimeDiff(String faultId);
	/**
	 * 处置时间差值
	 * @param faultId
	 * @return
	 */
	public Integer getDisposeTimeDiff(String faultId);

    Map<String, Object> getFaultDisposeTime(String faultId);

	List<FaultTime> getFaultResponseTime(String faultId);
	
	public List<FlowText> getFaultPlanShow(Map<String, String> map);
}